package slstone.quote.writtenEstimate.dao.pojo;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

public class WrittenEstimatePK implements Serializable
{
	private String id; // id
	private String stoneBreed; // 석종
	private String methods;// 마감
	private int thickness;// 두께
	private String unit;// 단위
	
	
	
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getStoneBreed()
	{
		return stoneBreed;
	}
	public void setStoneBreed(String stoneBreed)
	{
		this.stoneBreed = stoneBreed;
	}
	public String getMethods()
	{
		return methods;
	}
	public void setMethods(String methods)
	{
		this.methods = methods;
	}
	public int getThickness()
	{
		return thickness;
	}
	public void setThickness(int thickness)
	{
		this.thickness = thickness;
	}
	public String getUnit()
	{
		return unit;
	}
	public void setUnit(String unit)
	{
		this.unit = unit;
	}
	
	
	
	
	public boolean equals(Object obj)
	{
		if(!(obj instanceof WrittenEstimatePK))
		{
			return false;
		}
		else
		{
			WrittenEstimatePK WrittenEstimate = (WrittenEstimatePK)obj;
						
			return new EqualsBuilder().appendSuper(super.equals(obj))
					.append(this.id, WrittenEstimate.id)
					.append(this.methods, WrittenEstimate.methods)
					.append(this.stoneBreed, WrittenEstimate.stoneBreed)
					.append(this.unit, WrittenEstimate.unit)
					.isEquals();
		}
	}
	
	
	public int hashCode()
	{
		return new HashCodeBuilder(-528253723, -475504089)
		.appendSuper(super.hashCode())
		.append(this.id)
		.append(this.methods)
		.append(this.stoneBreed)
		.append(this.unit)
		.toHashCode();
	}
			
	
}
